<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" lang="en">

<ui:decorate template="/WEB-INF/template/pagina.xhtml">
	<ui:define name="conteudo">
		<h:form styleClass="form-horizontal">
			<fieldset>
				<div id="legend">
					<legend class="">Área administrativa</legend>
				</div>
				 
				<div class="control-group">
					<label class="control-label" for="usuario">Usuário:</label>
					<div class="controls">
						<h:inputText 
							id="usuario" 
							styleClass="input-xlarge" 
							value="#{LoginMB.usuario}"
							required="true"
							requiredMessage="Informe o usuário!"/>
						
						<span><h:message for="usuario" styleClass="label label-important"/></span>
						
					</div>
					
				</div>
	
				<div class="control-group">
					<!-- Password-->
					<label class="control-label" for="senha">Senha:</label>
					<div class="controls">
						<h:inputSecret 
							id="senha" 
							class="input-xlarge" 
							value="#{LoginMB.senha}"
							required="true"
							requiredMessage="Informe a senha!"/>
						<span><h:message for="senha" styleClass="label label-important"/></span>
					</div>
				</div>
	
				<div class="control-group">
				<!-- Button -->
					<div class="controls">
						<h:commandButton styleClass="btn btn-success" action="#{LoginMB.login}" value="Login"/>
					</div>
				</div>
			</fieldset>
		</h:form>
	</ui:define>
</ui:decorate>
</html>


